<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link rel="stylesheet" href="css/sweetalert.css" />
  <script src="js/jquery.js"></script>
  <script src="js/plugins/sweetalert.min.js"></script>
  <title>sweetalert</title>
</head>

<body>
    <button id="btn">alert</button>
    <script>
        swal("这是一条信息！");
    </script>
</body>

</html>